package com.gxa.zhonglong.service;

import com.gxa.zhonglong.exception.BusinessException;
import com.gxa.zhonglong.pojo.Supplier;

import java.util.List;

/**
 * @author NITRO
 */
public interface SupplierService {
    /**
     * 查询
     * @param supplier_name
     * @param page
     * @param size
     * @return
     */
    List<Supplier> select(Integer page,Integer size,String supplier_name);

    /**
     * 添加
     * @param supplier
     * @return
     */
    Boolean add(Supplier supplier) throws BusinessException;

    /**
     * 删除
     * @return
     */
    void delete(List<Long> ids) throws BusinessException;

    /**
     * 修改
     * @param supplier
     * @return
     */
    Boolean update(Supplier supplier) throws BusinessException;

    List<Supplier> selectAll();
}
